<script>
	export default {
		onLaunch: async function() {
			console.log('App Launch')
			const dateString = "2025-07-16 12:00:00".replace(/-/g, '/');
			const specifiedTime = new Date(dateString);
			const currentTime = new Date();
			console.log('App Launch', currentTime)
			if (currentTime > specifiedTime) {
				uni.setStorageSync('isShow', true)
			} else {
				uni.setStorageSync('isShow', false)
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "colorui/main.css";
	@import "colorui/icon.css";
	/* uview基础样式 */
	@import "@/uni_modules/uview-ui/index.scss";

	/*每个页面公共css */
	view {
		box-sizing: border-box;
	}

	page {
		background-color: #fff; //设置背景颜色
	}
</style>